package com.moli.iov.down.command.design.command.param.query.impl;

import com.moli.iov.down.command.codec.decode.bean.extend.QueryResExtendBean;
import com.moli.iov.down.command.design.command.param.query.ParamQueryCommand;
import com.moli.iov.util.ByteArrayUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * <p>
 *  蓝牙密码有效时长
 * </p>
 *
 * @author: zql
 * @Date: 2019/4/26 18:22
 */
public class BluetoothValidTimeCommand implements ParamQueryCommand {
    protected final Logger log = LoggerFactory.getLogger(this.getClass());
    @Override
    public QueryResExtendBean execute(QueryResExtendBean queryResExtendBean, byte[] value) {

        queryResExtendBean.setValue(String.valueOf(ByteArrayUtil.toInt(value)));
        return queryResExtendBean;
    }
}
